package cn.com.bluemoon.daps.standard.controller;

import cn.com.bluemoon.daps.common.datascope.BmPermission;
import cn.com.bluemoon.daps.common.datascope.BmVPN;
import cn.com.bluemoon.daps.common.datascope.IgnorePermission;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jarod.Kong
 */
@Api(tags = "just for test")
@RestController
@Slf4j
@RequestMapping("/justForTest")
public class JustForTestController {
    @GetMapping("/BmVPN")
    @ApiOperation(value = "test BmVPN ")
    @ApiResponses(value = {@ApiResponse(code = 200, message = "ok", response = String.class)})
    @BmVPN
    @IgnorePermission(name = "忽略")
    public ResultBean<String> testBmVPN() {
        return ResultBean.ok("success");
    }
}
